<?php
require_once("/../../../../includes/controller/initialize.php"); 

 if( isset( $_GET['id'])){
$con_id=  $_GET['id'];
  }

$sta = new StatsController();
$o = $sta->getViewData(31, $con_id);


?>

<script src="/public/view/javascript/Graph.js"></script>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
       <script> 

              
                var title = "Visninger de siste 30 dager";
                var graphtab = <?php echo $o?>;
                var x ;
                var y;

       </script>

       
       <script type="text/javascript">
   $(document).ready(function() {
       obj.drawGraph(graphtab, title, 'Dager', 'Visninger');
});

    </script>
   
     
        

  
       <div id="canvasgraph">

           
        <canvas id="graphcanvas" width="500" height="300" ></canvas>
       </div>
